package com.ruoyi.basedocument.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 物料分类对象 t_bom_materialgroup
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
public class BomMaterialgroup extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 编码 */
    @Excel(name = "编码")
    private String number;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 上级编码 */
    @Excel(name = "上级编码")
    private String parentnumber;

    /** 上级名称 */
    @Excel(name = "上级名称")
    private String parentname;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentnumber(String parentnumber) 
    {
        this.parentnumber = parentnumber;
    }

    public String getParentnumber() 
    {
        return parentnumber;
    }

    public String getParentname() {
        return parentname;
    }

    public void setParentname(String parentname) {
        this.parentname = parentname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("name", getName())
            .append("parentnumber", getParentnumber())
            .append("parentname", getParentname())
            .toString();
    }
}
